package com.lsmw.order.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 三号男嘉宾
 * @since 2021-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class LsOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(type = IdType.ASSIGN_ID)
    private Long orderNo;

    /**
     * 房型
     */
    private String houseType;

    /**
     * 房号
     */
    private String houseNo;

    /**
     * 提交时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 订单金额
     */
    private Float orderPrice;

    /**
     * 实付金额
     */
    private Float orderPriceTrue;

    /**
     * 入住时间
     */
    private Date inDate;

    /**
     * 离住时间
     */
    private Date outDate;

    /**
     * 订单状态
     */
    private Integer orderStatus;

    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 备注
     */
    private String note;


}
